using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
	public partial class SysLogNoGen : BusinessBase<string>
    {
        #region Declarations

        private string _logKindName = String.Empty;
        private int _initNo = default(Int32);
        private int _currNo = default(Int32);
        private int _maxNo = default(Int32);
        private int _stepLen = default(Int32);
        private int _formatLen = default(Int32);
        private string _remark = String.Empty;



        #endregion

        #region Constructors

        public SysLogNoGen() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_logKindName);
            sb.Append(_initNo);
            sb.Append(_currNo);
            sb.Append(_maxNo);
            sb.Append(_stepLen);
            sb.Append(_formatLen);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

        [DataMember]
        public virtual string LogKindName
        {
            get { return _logKindName.TrimEnd(); }
            set
            {
                OnLogKindNameChanging();
                _logKindName = value;
                OnLogKindNameChanged();
            }
        }
        partial void OnLogKindNameChanging();
        partial void OnLogKindNameChanged();

        [DataMember]
        public virtual int InitNo
        {
            get { return _initNo; }
            set
            {
                OnInitNoChanging();
                _initNo = value;
                OnInitNoChanged();
            }
        }
        partial void OnInitNoChanging();
        partial void OnInitNoChanged();

        [DataMember]
        public virtual int CurrNo
        {
            get { return _currNo; }
            set
            {
                OnCurrNoChanging();
                _currNo = value;
                OnCurrNoChanged();
            }
        }
        partial void OnCurrNoChanging();
        partial void OnCurrNoChanged();

        [DataMember]
        public virtual int MaxNo
        {
            get { return _maxNo; }
            set
            {
                OnMaxNoChanging();
                _maxNo = value;
                OnMaxNoChanged();
            }
        }
        partial void OnMaxNoChanging();
        partial void OnMaxNoChanged();

        [DataMember]
        public virtual int StepLen
        {
            get { return _stepLen; }
            set
            {
                OnStepLenChanging();
                _stepLen = value;
                OnStepLenChanged();
            }
        }
        partial void OnStepLenChanging();
        partial void OnStepLenChanged();

        [DataMember]
        public virtual int FormatLen
        {
            get { return _formatLen; }
            set
            {
                OnFormatLenChanging();
                _formatLen = value;
                OnFormatLenChanged();
            }
        }
        partial void OnFormatLenChanging();
        partial void OnFormatLenChanged();

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                OnRemarkChanging();
                _remark = value;
                OnRemarkChanged();
            }
        }
        partial void OnRemarkChanging();
        partial void OnRemarkChanged();

        #endregion
	}
}